import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import Mockjs from "mockjs";
const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

// 1. Blob: 二进制 不可变数据

const data = Mockjs.mock({
  "list|10": [{ name: "@cname" }],
});

const bl = new Blob([JSON.stringify(data)], {
  type: "application/json",
});

// 2. File 文件： File 继承 Blob

